#include<stdio.h>
#include<iostream>
#include<string.h>
using namespace std;
int toNum(char ch)
{
	return ch - '0';
}
int main()
{
	char num1[1000], num2[1000];
	int n1, n2;
	while (cin >> num1 >> num2)
	{
		if (strlen(num1) == 1)n1 = toNum(num1[0]);
		else n1 = toNum(num1[0]) * 10 + toNum(num1[1]);
		if (strlen(num2) == 1)n2 = toNum(num2[0]);
		else n2 = toNum(num2[0]) * 10 + toNum(num2[1]);
		cout << n1 + n2 << endl;
	}
	return 0;
}